Problems with tag O((n - m) * m)